rst = eval("4 + 2 * 3")
print(rst, type(rst))
rst = eval("False")
print(rst, type(rst))

has_ticket = eval(input("是否有车票："))
knife_length = int(input("带刀的长度："))

if has_ticket:
    print("有票", has_ticket)
    if knife_length < 20:
        print("可以上车，刀长：", knife_length)
    else:
        print("不准上车，刀太长：", knife_length)
else:
    print("没票，不准进门")
